//分类data的ts类型
export interface CategoryResponseData {
  code: number
  message: string
  ok: boolean
}
export interface DataC extends CategoryResponseData {
  data: CategoryData[]
}
export interface CategoryData {
  id: number
  name: string
  category1Id?: number
  category2Id?: number
}
//属性值的ts类型
export interface AttrValue {
  id?: number
  valueName: string
  attrId?: number
  flag?: boolean
}
//存储属性数组的ts类型
export type AttrValueList = AttrValue[]
//存储属性对象的ts类型
export interface Attr {
  id?: number
  attrName: string
  categoryId: number | string
  categoryLevel: number
  attrValueList: AttrValue[]
  AttrIdAndValueId?: string
}
//存储每一个属性对象的数据ts(AttrList[]储存的是Attr类似的对象)
export type AttrList = Attr[]
//继承接口返回数据的ts类型
export interface AttrListResponseData extends CategoryResponseData {
  data: Attr[]
}
